package com.cskaoyan.service;

import com.cskaoyan.bean.BasePageData;
import com.cskaoyan.bean.BaseParam;
import com.cskaoyan.bean.Role;
import com.cskaoyan.bean.admin.vo.AuthorityVO;
import com.cskaoyan.bean.admin.vo.RoleOptionVO;

import java.util.List;

/**
 * @PROJECT_NAME: market_34th
 * @DESCRIPTION:
 * @Author: qiu
 * @DATE: 2021/10/18 23:46
 */
public interface RoleService {
    BasePageData<Role> query(String name, BaseParam param);

    BasePageData<RoleOptionVO> getOptions();

    Role create(String name, String desc);

    void delete(Role role);

    void update(Role role);

    AuthorityVO permissions(Integer roleId);

    List<String> queryNamesByIds(List<Integer> roleIds);

}
